
MKCONF_DIR := ../../mkconfig
LIBC_DIR := ../../libc

include $(MKCONF_DIR)/compile.mk

CONFIG_DIR := $(TOPDIR)/..
ifneq ($(MAKECMDGOALS),clean)
AUTOCONF_MK = $(BUILD_DIR)\autoconfig.mk
sinclude $(AUTOCONF_MK)
endif
CONF_FILES += $(CONFIG_DIR)/model/$(BOARD)/config/config.mk

CPPFLAGS += -I$(CONFIG_DIR)/include -I$(CONFIG_DIR)/include/arch/$(ARCH) \
	 -I$(CONFIG_DIR)/model/$(BOARD)/config
export CPPFLAGS

COBJS-y := kernel.o circbuf.o iodev.o devfs.o 
COBJS-y += filesys.o flash.o
COBJS-$(CONFIG_POWER_CTL) += running.o

include $(MKCONF_DIR)/subdir.mk
include $(MKCONF_DIR)/operation.mk

